<!--所有部门分档对比饼状图-->
<div id="allScoreList" style="width: 95%;height: 62vh;display: inline-block;margin-left: 2.5%;"></div>
<input type="hidden" class="totScore" value="<{$list}>">
<input type="hidden" class="firScore" value="<{$list0}>">
<input type="hidden" class="secoScore" value="<{$list1}>">
<input type="hidden" class="threScore" value="<{$list2}>">
<script>
	//所有部门对比的饼状图
	var totScore=$(".totScore").val(); //所有的
	var totS=totScore.split(",");
	var firScore=$(".firScore").val(); //员额法官
	var firS=firScore.split(",");
	var secoScore=$(".secoScore").val(); //司法行政人员
	var secoS=secoScore.split(",");
	var threScore=$(".threScore").val(); //司法辅助人员
	var threS=threScore.split(",");
	
		var allScoreEvent = echarts.init(document.getElementById('allScoreList'));
			var allScoreEventOption = {
				title : {
			        text: '平罗县人民法院所有人成绩分档概况对比',
	//		        subtext: '岗位：所有    成绩：分档   分档：一/二/三/不及格\n',
			        x:'center'
			    },
			    tooltip : {
			        trigger: 'item',
			        formatter: "{a} {b} :{d}%",
			        textStyle: {
	                    fontSize:13
	                }
			    },
			    legend: {
			        orient: 'vertical',
			        left: 'left',
					top:'8%',
			        data: ['优秀','良好','一般','不及格']
			    },
			    grid: [
			        {x: '7.5%',y: '65%', width: '80%', height: '30%',right:'2%'},
			    ],
			    xAxis: [
			    	{
			    		gridIndex: 0,
			        	type: 'category',
			            axisTick: {
			                alignWithLabel: true
			            },
			            data: ['员额法官','司法行政人员','司法辅助人员']
		            },
			    ],
			    yAxis: [
			        {
		        		gridIndex: 0,
		        		name:'岗位',
		        		show:false,
			        },
			    ],
			    series : [
			        {
			            name: '整体概况',
			            type: 'pie',
			            //roseType:'radius',
			            radius : '45%',
			            center: ['50%', '36%'],
			            color: ['#39CBCA', '#C2D138', '#FFA809', '#E25C36'],
//			            color: ['#6EE3F7', '#FFDC89', '#FEA1C0', '#8AC994'],
			            data:[
			                {value:allS[0], name:'优秀'},
			                {value:allS[1], name:'良好'},
			                {value:allS[2], name:'一般'},
			                {value:allS[3], name:'不及格'},
			            ],
			            label: {
				            normal: {
				                position: 'outside',
				                formatter: '{b} {c}%',
				                 textStyle: {
				                    color: '',
				                    fontSize: 13
				                }
				            }
				        },
			            itemStyle: {
			                emphasis: {
			                    shadowBlur: 10,
			                    shadowOffsetX: 0,
			                    shadowColor: 'rgba(0, 0, 0, 0.5)'
			                }
			            }
			        },
			        {
			            name: '员额法官',
			            type: 'pie',
			            //roseType:'radius',
			            radius : '25%',
			            center: ['30%', '80.2%'],
			            data:[
			                {value:yuanS[0], name:'优秀'},
			                {value:yuanS[1], name:'良好'},
			                {value:yuanS[2], name:'一般'},
			                {value:yuanS[3], name:'不及格'}
			            ],
			            label: {
				            normal: {
				                position: 'outside',
				                formatter: '{b} {c}%',
				                textStyle: {
				                    color: '',
				                    fontSize: 12
				                }
				            }
				        },
			            itemStyle: {
			                emphasis: {
			                    shadowBlur: 10,
			                    shadowOffsetX: 0,
			                    shadowColor: 'rgba(0, 0, 0, 0.5)'
			                }
			            }
			        },
			        {
			            name: '司法行政人员',
			            type: 'pie',
			            radius : '25%',
			            center: ['52%', '81%'],
			            data:[
			                {value:xzS[0], name:'优秀'},
			                {value:xzS[1], name:'良好'},
			                {value:xzS[2], name:'一般'},
			                {value:xzS[3], name:'不及格'}
			            ],
			            label: {
				            normal: {
				                position: 'outside',
				                formatter: '{b} {c}%',
				                 offset: [,100],
				                 textStyle: {
				                    color: '',
				                    fontSize: 12
				                }
				            }
				        },
			            itemStyle: {
			                emphasis: {
			                    shadowBlur: 10,
			                    shadowOffsetX: 0,
			                    shadowColor: 'rgba(0, 0, 0, 0.5)'
			                }
			            }
			        },
			        {
			            name: '司法辅助人员',
			            type: 'pie',
			            //roseType:'radius',
			            radius : '25%',
			            center: ['68%', '81%'],
			            data:[
			                {value:fzS[0], name:'优秀'},
			                {value:fzS[1], name:'良好'},
			                {value:fzS[2], name:'一般'},
			                {value:fzS[3], name:'不及格'}
			            ],
			            label: {
			            normal: {
			                position: 'outside',
			                formatter: '{b} {c}%',
			                 textStyle: {
			                    color: '',
			                    fontSize: 12
			                }
			            }
			        },
			            itemStyle: {
			                emphasis: {
			                    shadowBlur: 10,
			                    shadowOffsetX: 0,
			                    shadowColor: 'rgba(0, 0, 0, 0.5)'
			                }
			            }
			        },

			    ]
			};
			allScoreEvent.setOption(allScoreEventOption);
</script>